using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Reflection;
using emp.SqlServerDAL;

namespace emp.DALFactory
{
    public class Item
    {
        public static emp.IDAL.IItem Create()
        {
            /// Look up the DAL implementation we should be using
            string path = System.Configuration.ConfigurationSettings.AppSettings["WebDAL"];
            string className = path + ".Item";
            // Using the evidence given in the config file load the appropriate assembly and class
            SqlServerDAL.Item item = new SqlServerDAL.Item();
            return (IDAL.IItem)item;
        }
    }
}
